package com.lj.back.manage.scaffold.common.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 登录传输对象
 * @author lv
 * @version 1.0.0
 */
@Data
@ApiModel("登录传输对象")
public class LoginDTO {

    @ApiModelProperty(value = "登录关键字",example = "zhangsan",required = true)
    @NotBlank(message = "{login.key.notnull}")
    private String loginKey;

    @ApiModelProperty(value = "密码,MD5加密",example = "123456",required = true)
    @NotBlank(message = "{login.password.notnull}")
    private String password;
}
